import request from '@/utils/request'

// 登录 axios({ url method data })
export const login = data => {
  return request({
    method: 'POST',
    url: '/sys/login',
    data
  })
}

// 获取用户基本资料
export const getInfo = () => {
  return request({
    method: 'POST',
    url: '/sys/profile'
    // headers: {
    //   'Authorization':
    // }
  })
}

// 获取员工基本信息
// id -> 用户id
export const getBaseInfo = id => {
  return request({
    method: 'GET',
    url: `/sys/user/${id}`
  })
}

// 登出
export function logout() {}
